package edu.ccut.saturn.basevalidate.prvalidate;

import edu.ccut.saturn.component.DefaultSaturnValidate;
import edu.ccut.saturn.component.ValidateResult;

public class IsNumberLetterOrEnglishValidate extends DefaultSaturnValidate {

	private static final String REGEXPR = "[0-9a-zA-Z]+";

	public void doValidate(Object value, Object[] args, ValidateResult result) {
			if (!(value.toString()).matches(REGEXPR)) {
				sendError(_ERROR_, value, result);
			}
		}
}
